package com.wl.zlmanage.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by ThinkPad on 2018/8/5.
 */
public class User implements Serializable {
    private Integer id;
    private String userId;
    private String userName;
    private String password;
    private Integer userDept;
    private String userDeptName;
    private Integer roleId;
    private String roleName;
    private List<Integer> childDeptList;

    public List<Integer> getChildDeptList() {
        return childDeptList;
    }

    public void setChildDeptList(List<Integer> childDeptList) {
        this.childDeptList = childDeptList;
    }

    public String getUserDeptName() {
        return userDeptName;
    }

    public void setUserDeptName(String userDeptName) {
        this.userDeptName = userDeptName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserDept() {
        return userDept;
    }

    public void setUserDept(Integer userDept) {
        this.userDept = userDept;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("User{");
        sb.append("id=").append(id);
        sb.append(", userId='").append(userId).append('\'');
        sb.append(", userName='").append(userName).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", userDept=").append(userDept);
        sb.append(", userDeptName='").append(userDeptName).append('\'');
        sb.append(", roleId=").append(roleId);
        sb.append(", roleName='").append(roleName).append('\'');
        sb.append(", childDeptList=").append(childDeptList);
        sb.append('}');
        return sb.toString();
    }
}
